const Http = require('./http');
const Api= require('./api');

class PhoneService {
  static getVerifyCode(phone) {
    return Http.request({
      url: Api.getVerifyCode,
      data: {
        phone: phone
      }
    });
  }

  static verifyCode(phone,code) {
    return Http.request({
      url: Api.verifyCode,
      data: {
        phone: phone,
        code: code
      }
    });
  }
  
}
module.exports = PhoneService;